
<?php
    include('inc/db.php');
    include('template/_header.php');

    
    mysql_query('DELETE FROM `blog`.`post` WHERE `post`.`id` = '.$_GET['id'].' LIMIT 1');
    mysql_query('DELETE FROM `blog`.`comment` WHERE `comment`.`post_id` = '.$_GET['id']);
    die('<h4>Delete successfuly ,<a href="list.php">Back to List</h4>');

    
?>
